package com.xh.bussiness.shop.model;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.xh.core.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author daiwei
 * @since 2019-02-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("shop_order")
public class Order extends SuperEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 所属机构ID
     */
    private String orgId;

    /**
     * 支付方式
     */
    private byte[] paymentTypeId;

    /**
     * 配送方式ID
     */
    private byte[] distributeTypeId;

    /**
     * 订单号
     */
    private byte[] code;

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 支付状态
     */
    private Integer paymentStatus;

    /**
     * 配送状态
     */
    private Integer distributeStatus;

    /**
     * 商品总价格
     */
    private Double productPrice;

    /**
     * 运费
     */
    private Double freight;

    /**
     * 订单总额
     */
    private Double total;

    /**
     * 结单日期
     */
    private java.util.Date finishTime;

    /**
     * 订单备注
     */
    private byte[] remark;

    /**
     * 发货时间
     */
    private java.util.Date distributeTime;

    /**
     * 快递单号
     */
    private byte[] distributeCode;

    /**
     * 交易单号
     */
    private String paymentCode;

    /**
     * 退款人ID
     */
    private byte[] returnId;

    /**
     * 收货人姓名
     */
    private String receiveName;

    /**
     * 收货人地址
     */
    private String receiveAddress;

    /**
     * 收货人邮编
     */
    private byte[] receiveZip;

    /**
     * 收货人电话号码
     */
    private byte[] receivePhone;


}
